// 登录模块
export namespace Login {
    export interface ReqLoginForm {
        username: string;
        password: string;
    }
    export interface ResLogin {
        msg: string;
        name: string;
        status: number;
        token: string
    }
    export interface ResAuthButtons {
        [key: string]: string[];
    }
}

// 菜单列表
export namespace Menu {
    export interface MenuItem {
        id: number;
        parentId: number;
        path: string;
        name: string;
        component: string;
        redirect: string;
        children: MenuItem[];
        icon: string;
        isAffix: number;
        isFull: number;
        isHide: number;
        isKeepAlive: number;
        isLink: string;
        menuType: string;
        meta: {
            title: string;
            icon: string;
            isKeepAlive: boolean;
            isLink: string;
            isHide: boolean;
            isFull: boolean;
        };
    }

   export interface MenuData {
        data: {
            routerMenu: MenuItem[];
        };
    }
}